<!-- search area   -->
<div class="row searchLineWrap">
	<form class="form-horizontal" method="post" action="${cxt!}/cms/article/list" id="searchForm">
	  <div class="col-md-12">
		  <div class="row">
			    <div class="col-md-4">
			      <div class="form-group">
			         <label  class="col-md-5 control-label">${_res["article.title"]}</label>
			         <div class="col-md-7">
			            <input type="text" class="form-control" name="article.l_name" placeholder="${_res['article.title']}" value="${paramMap['article.l_name']}"/>
			         </div>
			       </div>
			    </div>
			    
			    <div class="col-md-4">
			      <div class="form-group">
			         <label  class="col-md-5 control-label">${_res["article.status"]}</label>
			         <div class="col-md-7">
			           	<#dict type="select" name="article.f_status"  dictCode="COMMON_STATUS"  value="${paramMap['article.f_status']}"/>
			         </div>
			       </div>
			    </div>		
			    
		       <div class="col-md-4">
			        <div class="form-group">
			        	<% if(hasPrivilegeUrl("articleList")){ %>
				            <button type="button" class="btn btn-primary pull-left" onclick="ajaxForm('content','searchForm')">
				            <i class="fa fa-search m-l-sm m-r-xs"></i>${_res["system.search"]}</button>
				        <% } %>
			        </div>
			   </div>
			</div>	    
		  </div>
	</form>
</div>
<!-- search area end  -->

<div class="row searchLineWrap">
	<% if(hasPrivilegeUrl("articleAdd")){ %>
		<p><a href="javascript:void(0);" onClick="ajaxContent('/cms/article/add/a');" class="btn btn-primary pull-left">${_res["article.add"]}</a><div class="clearfix"></div></p>
	<% } %>
	<table class="table table-bordered">
	    <thead>
	        <tr>
	            <th>${_res["article.title"]}</th>
	            <th>${_res["article.classification"]}</th>
	            <th>${_res["article.status"]}</th>
	            <th>${_res["system.createtime"]}</th>
	            <th>${_res["system.lastUpdateTime"]}</th>
	            <th>${_res["system.operator"]}</th>
	       </tr>
	    </thead>
	    <tbody>
	    	<% for(article in splitPage.list){ %>
		      <tr >
		            <td>${article.title!}</td>
		            <td>${article.catalog.name!}</td>
		             <td><#dict type="lable" value='${article.status!}' dictCode="COMMON_STATUS"/></td>
		            <td>${article.createtime!,dateFormat="yyyy-MM-dd HH:mm"}</td>
		            <td>${article.updatetime!,dateFormat="yyyy-MM-dd HH:mm"}</td>
		            <td>
		            	<% if(hasPrivilegeUrl("articleView")){ %>
		               		<button type="button" class="btn btn-sm btn-link" onClick="ajaxContent('/cms/article/view/${article.id!}');">${_res["system.view"]}</button>
		               	<% } %>
		               	<% if(hasPrivilegeUrl("articleEdit")){ %>
		               		<button type="button" class="btn btn-sm btn-link" onClick="ajaxContent('/cms/article/update/e-${article.id!}')">${_res["system.edit"]}</button>
		               	<% } %>
		               	<% if(hasPrivilegeUrl("articleDelete")){ %>
		               		<button type="button" class="btn btn-sm btn-link" data-trigger="confirm"  onClick="ajaxDelete('/cms/article/delete/${article.id!}')">${_res["system.delete"]}</button>
		            	<% } %>
		            </td>
		      </tr>
		     <% } %>
	    </tbody>
	</table>
 	<div id="splitPageDiv">
		<#page formId="searchForm"  />
	</div>
	<#nav />	
</div>	